<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<div id="introu"></div>
		<script type="text/javascript">
			function Person(nation, skinColor) { //父有参构造
				this.nation = nation;
				this.skinColor = skinColor;

			}
			Person.prototype.getNation = function() { //父类返回民族方法

				return this.nation;
			}

			Person.prototype.getSkinColor = function() { //父类返回肤色方法

				return this.skinColor;
			}

			function Woman(sex) {

				this.sex = sex;
			}

			Woman.prototype = new Person() //Woman 继承父类

			Woman.prototype.getSex = function() { //女士有自己的性别方法

				return this.sex;
			}

			var woman1 = new Woman();

			woman1.nation = "汉族";

			woman1.skinColor = "黄色";

			woman1.sex = "女";

			function intro()  {

				var str = "民族：" + woman1.nation + "<br/>肤色：" + woman1.skinColor + "<br/>性别：" + woman1.sex;

				document.getElementById("introu").innerHTML = str;

			}

			intro();
		</script>
	</body>

</html>